{extend name="layout/common_layout" /}
{block name="body"}
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/skilldisplay/index')}">名片管理</a></li>
            <li class="">详情</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container">
                    <div class="layui-form-item">
                        <label class="layui-form-label">用户昵称：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.u_nickname}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">头像：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sd_photo != ''"}
                                <img src="{$detail.sd_photo}" style="width: 200px;height: 200px;">
                            {else/}
                                <img src="" alt="用户头像" style="width: 200px;height: 200px;">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">标题：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sd_title}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">需求描述：</label>
                        <div class="layui-input-block">
                            <textarea lay-verify="required" class="layui-input">{$detail.sd_content}</textarea>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">合作倾向：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sd_range == 1"}
                                <input type="text"  value="不限" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sd_range == 2"}
                                <input type="text"  value="个人" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sd_range == 3"}
                                <input type="text"  value="企业" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">合作地域：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.pName}-{$detail.cName}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系人姓名：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sd_name}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系人邮箱：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sd_email}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">联系人电话：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sd_phone}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发布状态：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sd_status == 1"}
                                <input type="text"  value="未发布" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sd_status == 2"}
                                <input type="text"  value="审核中" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sd_status == 3"}
                                <input type="text"  value="审核成功" readonly  lay-verify="required" class="layui-input">
                            {/if}
                            {if condition="$detail.sd_status == 4"}
                                <input type="text"  value="审核失败" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核通过时间：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sd_adopt_time != ''"}
                            <input type="text"  value="{$detail.sd_adopt_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">审核失败时间：</label>
                        <div class="layui-input-block">
                            {if condition="$detail.sd_not_adopt_time != ''"}
                            <input type="text"  value="{$detail.sd_not_adopt_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">
                            {/if}
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发布时间：</label>
                        <div class="layui-input-block">
                            <input type="text"  value="{$detail.sd_create_time|date='Y-m-d H:i:s',###}" readonly  lay-verify="required" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            {if condition="$detail.sd_status == 2"}
                                <p class="layui-btn"><a href="{:url('admin/skilldisplay/edit',['id'=>$detail['sd_id'], 'status' => $detail['sd_status'], 'res' =>3, 'uid' => $detail['sd_uid'], 'sdtitle' => $detail['sd_title']])}" class="ajax-confim">通过</a></p>
                                <p class="layui-btn"><a href="{:url('admin/skilldisplay/edit',['id'=>$detail['sd_id'], 'status' => $detail['sd_status'], 'res' =>4, 'uid' => $detail['sd_uid'], 'sdtitle' => $detail['sd_title']])}" class="ajax-confim">不通过</a></p>
                            {/if}
                            {if condition="$detail.sd_status == 4"}
                                <p class="layui-btn"><a href="{:url('admin/skilldisplay/edit',['id'=>$detail['sd_id'], 'status' => $detail['sd_status'], 'res' =>3, 'uid' => $detail['sd_uid'], 'sdtitle' => $detail['sd_title']])}" class="ajax-confim">通过</a></p>
                            {/if}
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
{/block}
{block name="js"}
<!--<script src="__JS__/kindeditor/kindeditor.config.js"></script>-->
<!--<script src="__JS__/kindeditor/kindeditor-all-min.js"></script>-->
<script src="__JS__/ueditor/ueditor.config.js"></script>
<script src="__JS__/ueditor/ueditor.all.min.js"></script>
{/block}
{block name="script"}
<script>

</script>
{/block}